import 'package:flutter_chip/config/Comm.dart';
import 'package:sharesdk_plugin/sharesdk_interface.dart';
import 'package:sharesdk_plugin/sharesdk_register.dart';

class ThirdUtils {

  ThirdUtils._();

  static ThirdUtils _manager;

  factory ThirdUtils() {
    if (_manager == null) {
      _manager = ThirdUtils._();
    }
    return _manager;
  }

  void initThird() {
    ShareSDKRegister register = ShareSDKRegister();
    register.setupWechat(
        Comm.WX_APPID, Comm.WX_APPSERCET, "https://www.sandslee.com/");
    register.setupQQ(Comm.QQ_APPID, Comm.QQ_APPKEY);
//    register.setupAliSocial(Comm.ALI_APPID);
    SharesdkPlugin.regist(register);
  }
}
